<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>天书榜 | 有声小说</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/png" sizes="32x32" href="icon/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="icon/favicon-16x16.png">
    <link rel="stylesheet" href="admin/plugins/fontawesome-free/css/all.min.css">
    <link rel="stylesheet" href="css/ionicons/2.0.1/ionicons.min.css">
    <link rel="stylesheet" href="admin/css/adminlte.min.css">
    <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
    <nav class="main-header navbar navbar-expand navbar-white navbar-light">
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
            </li>
        </ul>
        <ul class="navbar-nav ml-auto">
            <li class="nav-item dropdown">
                <a class="nav-link" data-toggle="dropdown" href="#">
                    <i class="far fa-user text-gray"></i>
                </a>
                <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
                    <div class="dropdown-divider"></div>
                    <a href="javascript:void(0);" class="dropdown-item" onclick="logout();">
                        <i class="fas fa-sign-out-alt mr-2"></i>登出
                    </a>
                </div>
            </li>
        </ul>
    </nav>

    <#include "./sideMenu.ftl">

    <section class="content-wrapper">
        <section class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1>新增记录（有声）</h1>
                    </div>
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a href="/">主页</a></li>
                            <li class="breadcrumb-item active">新增记录（有声）</li>
                        </ol>
                    </div>
                </div>
            </div>
        </section>

        <section class="content">
            <div class="row">
                <div class="col-sm-6">
                    <h5 class="text-dark pl-2" style="border-left: solid 5px red;">关联小说：${fictionName}</h5>
                </div>
            </div>
            <div class="row">
                <div class="col-12">
                    <table id='audio-table-handle' class="table table-bordered table-striped table-hover">
                        <thead>
                        <tr>
                            <th>序号</th>
                            <th>平台</th>
                            <th>演播者</th>
                            <th>创建时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <#list audioList as row>
                            <tr>
                                <td>${row_index + 1}</td>
                                <td>${row[0]}</td>
                                <td>${row[1]}</td>
                                <td>${row[2]}</td>
                                <td>
                                    <button class="btn btn-success">修改</button>
                                    <button class="btn btn-danger">修改（暂未实现）</button>
                                </td>
                            </tr>
                        </#list>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="card card-primary">
                        <div class="card-header">
                            <h3 class="card-title" id="current-fiction-handle" value="${fictionId}">新增记录</h3>

                            <div class="card-tools">
                                <button type="button" class="btn btn-tool" data-card-widget="collapse" data-toggle="tooltip" title="Collapse">
                                    <i class="fas fa-minus"></i>
                                </button>
                            </div>
                        </div>
                        <div class="card-body">
                            <div class="row">
                                <div class="col-md-3">
                                    <div class="form-group">
                                        <label for="inputName">演播者</label>
                                        <input type="text" id="audio-broadcaster" class="form-control">
                                    </div>
                                    <div class="form-group">
                                        <label for="inputDescription">平台</label>
                                        <input type="text" id="audio-platform" class="form-control">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-12">
                    <button class="btn btn-secondary" onclick="audioEditOnButtonClearClick();">清除内容</button>
                    <button class="btn btn-success" onclick="audioEditOnButtonFinishClick();">完成</button>
                </div>
            </div>
            <section class="content-header">
                <div class="container-fluid">
                    <ul id="post-fiction-result" class="mb-2">

                    </ul>
                </div>
            </section>
        </section>
    </section>

    <footer class="main-footer">
        <span> &copy; ${year2year} <strong><a href="http://tianshubang.com">tianshubang.com</a></strong> 版权所有 (v 1.0.1)</span>
        <span class="ml-2 mr-2 text-gray">|</span>
        <a href="/articlerepository"><u class="text-gray">小说索引</u></a>
        <span class="ml-2 mr-2 text-gray">|</span>
        <a href="/authorrepository"><u class="text-gray">作者索引</u></a>
    </footer>
</div>

<script src="admin/plugins/jquery/jquery.min.js"></script>
<script src="plugin/bloodhound.min.js"></script>
<script src="admin/plugins/datatables/jquery.dataTables.js"></script>
<script src="plugin/bootstrap-typeahead.min.js"></script>
<script src="admin/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="admin/js/adminlte.min.js"></script>
<script src="utility.js"></script>
<script src="script/page/audioeditpage.js"></script>

</body>
</html>
